﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace TE3
{
	public class WindowManager
	{
		private TE3Game _currentGame;
		public Dictionary<string, Window> Windows;
		public WindowManager(TE3Game game)
		{
			Windows = new Dictionary<string, Window>();
			_currentGame = game;
		}
		public void AddWindow(Window window, string name)
		{
			Windows.Add(name, window);
			_currentGame.DrawManager.Drawables.Add(name + "_drawable", window);
		}
		public void DestroyEntity(string name)
		{
			Windows.Remove(name);
			_currentGame.DrawManager.Drawables.Remove(name + "_drawable");
		}
	}
}
